import {request} from "@/config/request.js"
export const orderCreate = (data)=>{
	return request({
		url:'order/order_create',
		method:'post',
		data
	})
} 
// 积分记录
export const orderList = (data)=>{
	return request({
		url:'order/order_list',
		method:'post',
		data
	})
} 
// 创建订单
export const createOrder = (data)=>{
	return request({
		url:'order/order_create',
		method:'post',
		data
	})
}
//  订单详情
export const orderDetail = (data)=>{
	return request({
		url:'order/order_detail',
		method:'post',
		data
	})
}
//  订单支付
export const pay = (data)=>{
	return request({
		url:'order/pay',
		method:'post',
		data
	})
}
//  订单评论
export const evaluateOrder = (data)=>{
	return request({
		url:'order/order_evaluate',
		method:'post',
		data
	})
}
//  订单支付模拟
export const payTest = (data)=>{
	return request({
		url:'order/pay_test',
		method:'post',
		data
	})
}
//  订单支付模拟
export const confirmOrder = (data)=>{
	return request({
		url:'order/order_confirm',
		method:'post',
		data
	})
}
//购物车订单cart_order_create
export const  createCartOrder = (data)=>{
	return request({
		url:'order/cart_order_create',
		method:'post',
		data
	})
}
// 服务预约 订单
export const  serviceOrder = (data)=>{
	return request({
		url:'service/yizhen_list',
		method:'post',
		data
	})
}
// 服务预约 订单支付
export const  servicePay = (data)=>{
	return request({
		url:'service/yizhen_pay',
		method:'post',
		data
	})
}
// 服务预约 订单支付
export const  serviceDetail = (data)=>{
	return request({
		url:'service/yizhen_detail',
		method:'post',
		data
	})
}